/*
 ============================================================================
 Name		: DemoDlg.cpp
 Author	  : hou maoqing
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CDemoDlg implementation
 ============================================================================
 */
#include "DemoDlg.h"
#include "RtLabel.h"
#include "RtEdit.h"
#include "RtEnv.h"

CDemoDlg::CDemoDlg(int nID,void* pParam)
	:CRtXmlDlg(nID,"",pParam)
	{
		REGISTER_ACTCON(Test);
	}

CDemoDlg::~CDemoDlg()
	{
	}

void CDemoDlg::InitDialog(void* pParam)
	{
	
	}

bool CDemoDlg::OkToExit(int nCommand)
	{
	if(nCommand==ERtOk) //ok
		{
		/*CRtString* pStr=(CRtString*)m_pParam;
		*pStr=m_pEdit->GetText();
		if(pStr->Length()<1)
			return false;*/
		return true;
		}
	else	//cancel
		{
		return false;
		}
	}

bool CDemoDlg::Test(CRtEvtSender* pSender,CRtMessage* pMessage)
{
	CloseDialog();
	return true;
}